package com.ele.web;

import com.ele.service.BusinessService;
import com.ele.service.impl.BusinessServiceImpl;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Enumeration;

@WebServlet("/businessDelete")
public class BusinessDeleteServlet extends HttpServlet {
    private BusinessService businessService = new BusinessServiceImpl();
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        String id = req.getParameter("id");

        Integer d = this.businessService.businessDelete(id);
        resp.getWriter().write(d + "");
    }
}
